package org.bean2sql.demo;

import java.util.Date;

import org.bean2sql.annotations.Bean2SqlField;
import org.bean2sql.annotations.Bean2SqlPk;
import org.bean2sql.annotations.Bean2SqlTable;

@Bean2SqlTable (name = "Pessoa")
public class Person {
    @Bean2SqlPk(type="IDENTITY")
    private Integer id;

    @Bean2SqlField(field = "nome", type="VARCHAR", length=40)
    private String name;

    @Bean2SqlField(field = "email", type="VARCHAR", length=40)
    private String email;

    @Bean2SqlField(field = "nascimento", type="DATE")
    private Date birth;

    public Person() {
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }
}
